﻿using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.game
{
    public class BetLocationIndexRet : Message
    {
        public static int TYPE = 12;
        public static int ID = 11;

        public int betType { get; set; } // 1代表牌最大的玩家下注类型   2代表其他玩家选择跟注类型
        public int locationIndex { get; set; } // betType1代表正在下注的玩家，betType2也代表刚才下注的玩家（客户端自动将该玩家剔除，其余玩家选择跟注）
        public int betOrCallScore { get; set; } // betType1分数为0， betType2返回需要跟注的数值


        public void decode(Input _in)
        {
            betType = _in.readInt();
            locationIndex = _in.readInt();
            betOrCallScore = _in.readInt();
        }

        public void encode(Output _out)
        {
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("BetLocationIndexRet[betType={0},UserID={1},betOrCallScore={2}]", betType,
                locationIndex,
                betOrCallScore);
        }
    }
}